package tests;

import javax.vecmath.Point3d;
import rayCaster.Ray;

public class TestRay {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {

		Point3d origin = new Point3d(0,0,10);
		Point3d dir = new Point3d(0,0,0);
		Ray r = new Ray(origin,dir);
		System.out.println(r);
		
		System.out.print("El origen y el vector direccion son: ");
		System.out.println(r.getOrigin() + " y " + r.getVecDir());

		double k1 = 1, k2 = 2;
		Point3d p = new Point3d();
		r.getPoint(k2, p);
		System.out.print("Puntos del rayo para valores " + k1 + " y " + k2 + ": ");
		System.out.println(r.getPoint(k1) + " y " + p);
	}

}
